This document describes the replication files associated with the paper:
Taka-aki Asano. 2023. "Media Choice and Response Patterns to Questions About Political Knowledge." International Journal of Public Opinion Research.

The following files are contained herein:
replication_dataset.csv (the survey data)
01_political_knowledge_lca.R (R code to replicate Figure 1)
02_political_knowledge_political_attitude.R (R code to replicate Figure 2)
03_political_knowledge_predict_pattern.R (R code to replicate Table 2 and Figure 3)
A1_political_knowledge_multiple_media.R (R code to replicate Figure A.1 and A.2 in Online Appendix)
A2_political_knowledge_motivated_reasoning.R (R code to replicate Figure A.3 in Online Appendix)

Instructions:
Put all the files in your working directory.
R files must be run in the order 01, 02, 03, A1, A2.

All data analyses using these replication files were carried out using R version 4.2.2 as well as the following R packages: readr version 2.1.3, dplyr version 1.0.10, tidyr version 1.2.1, stringr version 1.5.0, ggplot2 version 3.4.0, ggpubr version 0.5.0, poLCA version 1.6.0.1, ltm version 1.2-0, psych version 2.2.9, magrittr version 2.0.3, nnet version 7.3-18, coefplot version 1.2.8, and effects version 4.2-2.

If you have any questions or find any problems with the files, please feel free to contact the author.
